import Layout from '@/layout'
export default [
  {
    path: '/goods',
    name: 'goods',
    component: Layout,
    redirect: '/goods/goods-product',
    meta: { title: '商品', icon: '商品' },
    children: [
      {
        path: 'goods-product',
        name: 'goods-product',
        component: () => import('@/views/goods/components/goods-product'),
        meta: { title: '商品列表', icon: '商品列表-o' }
      },
      {
        path: 'goods-addproduct',
        name: 'goods-addproduct',
        component: () => import('@/views/goods/components/goods-addproduct'),
        meta: { title: '添加商品', icon: '添加' }
      },
      {
        path: 'goods-sortproduct',
        name: 'goods-sortproduct',
        component: () => import('@/views/goods/components/goods-sortproduct'),
        meta: { title: '商品分类', icon: '商品列表' }
      },
      {
        path: 'commodityType',
        name: 'commodityType',
        component: () => import('@/views/goods/components/commodity_type'),
        meta: {
          title: '商品类型',
          icon: '商品'
        }
      },
      {
        path: 'brandManagement',
        name: 'brandManagement',
        component: () => import('@/views/goods/components/brand_management'),
        meta: {
          title: '品牌管理',
          icon: '标签'
        }
      }
    ]
  }
]
